package com.example.gcjjhd.agriculture.repository;

import com.example.gcjjhd.agriculture.entity.Device;
import org.springframework.data.jpa.repository.JpaRepository;
import java.util.List;

public interface DeviceRepository extends JpaRepository<Device, String> {
    List<Device> findByType(String type);
    List<Device> findByArea(String area);
}